home *** CD-ROM | disk | FTP | other *** search
- ' Mh.Init Initializes values for other routines
- ' Copyright 1987 MicroHelp, Inc. - All Rights Reserved
-
- ' Determines Monitor and sets value accordingly. No input is necessary.
- ' Output is Monitor% plus cursor sizes
-
- ' Call Mh.Init (Monitor%,_
- ' Mh.Cursor.Normal.Start%,Mh.Cursor.Normal.End%,_
- ' Mh.Cursor.Insert.Start%,Mh.Cursor.Insert.End%)
-
- SUB Mh.Init (Monitor%, Mh.Cursor.Normal.Start%, Mh.Cursor.Normal.End%, Mh.Cursor.Insert.Start%, Mh.Cursor.Insert.End%) STATIC
-
- DEF SEG = 0
- IF (PEEK(&H410) AND &H30) = &H30 GOTO Monochrome.attributes' Goto mono
-
- Color.attributes:
-
- Monitor% = &HB800
- COLOR 14, 1, 1
- Mh.Cursor.Normal.Start% = 0
- Mh.Cursor.Normal.End% = 7
- Mh.Cursor.Insert.Start% = 4
- Mh.Cursor.Insert.End% = 7
- GOTO Init.Exit
-
- Monochrome.attributes:
-
- Monitor% = &HB000
- COLOR 15, 0, 0
- Mh.Cursor.Normal.Start% = 0
- Mh.Cursor.Normal.End% = 13
- Mh.Cursor.Insert.Start% = 5
- Mh.Cursor.Insert.End% = 13
-
- Init.Exit:
-
- DEF SEG
-
- END SUB
-